<?php
namespace app\model;
use think\Model;
class Data extends Model
{
    protected $table = "sy_data";

    public function user()
    {
        return $this->hasOne(User::class, 'id', 'uid')->field('*');
    }
}